<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:h="http://java.sun.com/jsf/html">

<body>

	<ui:composition template="./../template.xhtml">

		<ui:define name="right">

		</ui:define>

		<ui:define name="center">
			<p:panel
				header="Sample di: #{experimentController.experiment.seriesIid}">
				<h:form id="form">


					<p:dataTable var="sam"
						value="#{experimentController.experiment.samples}"
						paginator="true" rows="10" emptyMessage="nessun sample in exp">

						<p:column headerText="name" filterBy="#{sam.name}"
							filterMatchMode="contains">
							<h:outputText value="#{sam.name}" />
						</p:column>

						<p:column headerText="title" filterBy="#{sam.title}"
							filterMatchMode="contains">
							<h:outputText value="#{sam.title}" />
						</p:column>

						<p:column headerText="plat" filterBy="#{sam.platformId}"
							filterMatchMode="contains">
							<h:outputText value="#{sam.platformId}" />
						</p:column>

						<p:column>
							<p:commandButton action="detailSample" image="ui-icon ui-icon-search"
								title="Details" ajax="false">
								<f:setPropertyActionListener
									target="#{experimentController.sample}" value="#{sam}" />
							</p:commandButton>
						</p:column>


					</p:dataTable>

				</h:form>
			</p:panel>
		</ui:define>
	</ui:composition>
</body>
</html>
